package com.cyzy.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

public class CouponSeckill {
  //@TableId
  @TableId(type = IdType.AUTO)
  private long seckillId;

  private Integer couponId;
  private Integer seckillNum;
  private Integer limitNum;

  @TableField(exist = false)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date seckillCreateTime;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date seckillStartTime;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date seckillEndTime;
//  优惠券名称
  @TableField(exist = false)
  private String couponName;
//优惠券类型
  @TableField(exist = false)
  private Integer couponType;

  private Integer seckillStatus;
//秒杀的状态0-正在进行时；1-已结束；2-未开始
  @TableField(exist = false)
  private Integer flashSaleStatus;

  @TableField(exist = false)
  private Integer page;
  @TableField(exist = false)
  private Integer pageSize;

  public long getSeckillId() {
    return seckillId;
  }

  public void setSeckillId(long seckillId) {
    this.seckillId = seckillId;
  }

  public Integer getCouponId() {
    return couponId;
  }

  public void setCouponId(Integer couponId) {
    this.couponId = couponId;
  }

  public Integer getSeckillNum() {
    return seckillNum;
  }

  public void setSeckillNum(Integer seckillNum) {
    this.seckillNum = seckillNum;
  }

  public Integer getLimitNum() {
    return limitNum;
  }

  public void setLimitNum(Integer limitNum) {
    this.limitNum = limitNum;
  }

  public Date getSeckillCreateTime() {
    return seckillCreateTime;
  }

  public void setSeckillCreateTime(Date seckillCreateTime) {
    this.seckillCreateTime = seckillCreateTime;
  }

  public Date getSeckillStartTime() {
    return seckillStartTime;
  }

  public void setSeckillStartTime(Date seckillStartTime) {
    this.seckillStartTime = seckillStartTime;
  }

  public Date getSeckillEndTime() {
    return seckillEndTime;
  }

  public void setSeckillEndTime(Date seckillEndTime) {
    this.seckillEndTime = seckillEndTime;
  }

  public String getCouponName() {
    return couponName;
  }

  public void setCouponName(String couponName) {
    this.couponName = couponName;
  }

  public Integer getCouponType() {
    return couponType;
  }

  public void setCouponType(Integer couponType) {
    this.couponType = couponType;
  }

  public Integer getSeckillStatus() {
    return seckillStatus;
  }

  public void setSeckillStatus(Integer seckillStatus) {
    this.seckillStatus = seckillStatus;
  }

  public Integer getFlashSaleStatus() {
    return flashSaleStatus;
  }

  public void setFlashSaleStatus(Integer flashSaleStatus) {
    this.flashSaleStatus = flashSaleStatus;
  }

  public Integer getPage() {
    return page;
  }

  public void setPage(Integer page) {
    this.page = page;
  }

  public Integer getPageSize() {
    return pageSize;
  }

  public void setPageSize(Integer pageSize) {
    this.pageSize = pageSize;
  }

  @Override
  public String toString() {
    return "CouponSeckill{" +
            "seckillId=" + seckillId +
            ", couponId=" + couponId +
            ", seckillNum=" + seckillNum +
            ", limitNum=" + limitNum +
            ", seckillCreateTime=" + seckillCreateTime +
            ", seckillStartTime=" + seckillStartTime +
            ", seckillEndTime=" + seckillEndTime +
            ", couponName='" + couponName + '\'' +
            ", couponType=" + couponType +
            ", seckillStatus=" + seckillStatus +
            ", flashSaleStatus=" + flashSaleStatus +
            '}';
  }
}
